﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace YiYiTong.Rocket.Model
{
    public class MemberModel
    {
        /// <summary>
        /// 用户编号
        /// </summary>
        public long uid { get; set; }
        /// <summary>
        /// 代购编号
        /// </summary>
        public string replacebuyerno { get; set; }
        public string mobile { get; set; }
        /// <summary>
        /// 会员等级
        /// </summary>
        public short memberLevel { get; set; }
        public decimal balance { get; set; }
        /// <summary>
        /// 会员姓名
        /// </summary>
        public string membername { get; set; }

        public string headerUrl { get; set; }
        /// <summary>
        /// 今日销售额
        /// </summary>
        public decimal saleAmt { get; set; }
        /// <summary>
        /// 今日服务费
        /// </summary>
        public decimal buyAmt { get; set; }
        /// <summary>
        /// 今日推荐费
        /// </summary>
        public decimal recommendAmt { get; set; }

        /// <summary>
        /// 服务费比例
        /// </summary>
        public decimal buyer_rate { get; set; }

        /// <summary>
        /// 加价比例
        /// </summary>
        public decimal add_rate { get; set; }
        /// <summary>
        /// 推荐费比例
        /// </summary>
        public decimal recommend_rate { get; set; }
        /// <summary>
        /// 会员等级名称
        /// </summary>
        public string member_level_name { get; set; }

        /// <summary>
        /// 待付款订单数
        /// </summary>
        public int waitpayorder_num { get; set; }

        /// <summary>
        /// 待收货订单数
        /// </summary>
        public int paysucc_order_num { get; set; }

        /// <summary>
        /// 预定中数量
        /// </summary>
        public int placeing_num { get; set; }

        /// <summary>
        /// 待付款预定数量
        /// </summary>
        public int waitpayplace_num { get; set; }

        /// <summary>
        /// 竞价中
        /// </summary>
        public int jingjiazhong_num { get; set; }
        /// <summary>
        /// 已成交，未付款
        /// </summary>
        public int jingjiachengjiao_num { get; set; }
        /// <summary>
        /// 总销售额
        /// </summary>
        public decimal? sumsaleamt { get; set; }
        /// <summary>
        /// 总服务费
        /// </summary>
        public decimal? sumBuyAmt { get; set; }
        /// <summary>
        /// 总推荐费
        /// </summary>
        public decimal? sumRecommendAmt { get; set; }
        public int issetpaypwd { get; set; }


        public int isfollowed { get; set; }

        public decimal cancashamt { get; set; }

        /// <summary>
        /// 推荐人
        /// </summary>
        public string recommend { get; set; }

        /// <summary>
        /// 推荐人手机号
        /// </summary>
        public string recommendMobile { get; set; }

        public List<MemberLevelModel> levelList { get; set; }
    }

    public class BillModel
    {
        public int allrows { get; set; }
        public int allpages { get; set; }

        public List<AmountLogModel> list { get; set; }
    }

    public class AmountLogModel
    {
        public long uid { get; set; }
        public decimal amount { get; set; }
        public short order_type { get; set; }

        public string orderid { get; set; }
        public short inOrOut { get; set; }

        public string message { get; set; }
        public DateTime create_time { get; set; }
    }

    public class MemberDetailsModel
    {
        public long? uid { get; set; }
        public string real_name { get; set; }

        public string address { get; set; }

        public string contact_mobile { get; set; }

        public string id_number { get; set; }
        public string company_telephone { get; set; }
        public string company_address { get; set; }
        public string company_name { get; set; }
        public int customer_type { get; set; }
    }

    public class MemberLevelModel
    {
        /// <summary>
        /// 会员等级
        /// </summary>
        public int member_level { get; set; }
        /// <summary>
        /// 会员等级名称
        /// </summary>
        public string member_name { get; set; }
        public decimal add_rate { get; set; }
    }

    public class CashBankModel
    {
        public long cash_bank_id { get; set; }

        public long uid { get; set; }

        public int bank_id { get; set; }

        public string bank_name { get; set; }

        public string bank_account { get; set; }

        public string branch_bank_name { get; set; }

        public string bank_account_name { get; set; }
    }
}
